package com.ddone.config;

import com.ddone.faker.ChinaFaker;
import net.datafaker.Faker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Locale;

/**
 * @author ddone
 * @date 2024/3/26-13:42
 */
@Configuration
public class FakerConfig {
    @Bean
    public Faker faker(){
        return new Faker(Locale.CHINA);
    }

    @Bean
    public ChinaFaker chinaFaker(){
        return new ChinaFaker(Locale.CHINA);
    }

    @Bean()
    public Faker fakerEn(){
        return new Faker(Locale.ENGLISH);
    }
}
